/*
    Copyright (C) 2008-2009 Dmitry Gusev <dmitry.gusev@gmail.com>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.

 */

package dmitrygusev.web4konverta.mobile;

import java.util.Vector;

/**
 *
 * @author dmitrygusev
 */
public class WeeklyEnvelope {
    private Vector Expenses = new Vector();
    
    public static final byte MONDAY     = 0;
    public static final byte TUESDAY    = 1;
    public static final byte WEDNESDAY  = 2;
    public static final byte THURSDAY   = 3;
    public static final byte FRIDAY     = 4;
    public static final byte SATURDAY   = 5;
    public static final byte SUNDAY     = 6;
    
    public WeeklyEnvelope()
    {
        for (int i = 0; i < 7; i++)
        {
            Expenses.addElement("");
        }
    }
    
    public String getExpensesForDay(int dow)
    {
        Utils.assertDowInRange(dow);
        
        return (String) Expenses.elementAt(dow);
    }

    public void setExpensesForDay(int dow, String value)
    {
        Utils.assertDowInRange(dow);
        
        Expenses.setElementAt(value, dow);
    }
    
}
